import request from '@/utils/iasRequest'
const basePath = '/notice'

export function saveNotice(val) {
  return request({
    url: basePath + '/save',
    method: 'post',
    data: val
  })
}

export function updateNotice(val) {
  return request({
    url: basePath + '/update',
    method: 'post',
    data: val
  })
}

export function deleteNotice(val) {
  return request({
    url: basePath + '/delete/' + val,
    method: 'get',
    data: null
  })
}

export function batchDeleteNotice(val) {
  return request({
    url: basePath + '/batchDelete',
    method: 'post',
    data: val
  })
}

export function queryPage(val) {
  return request({
    url: basePath + '/queryPage2',
    method: 'get',
    params: val
  })
}
